package com.small.flowable.config;

import lombok.extern.slf4j.Slf4j;
import org.flowable.spring.SpringProcessEngineConfiguration;
import org.flowable.spring.boot.ProcessEngineConfigurationConfigurer;
import org.springframework.stereotype.Component;

/**
 * @author w.g.c
 * @date 2018/8/13
 * @Descripton 配置字符集
 */
@Component
@Slf4j
public class ProcessEngineConfiguration implements ProcessEngineConfigurationConfigurer {


    @Override
    public void configure(SpringProcessEngineConfiguration processEngineConfiguration) {
        processEngineConfiguration.setActivityFontName("宋体");
        processEngineConfiguration.setLabelFontName("宋体");
        processEngineConfiguration.setAnnotationFontName("宋体");
        log.info("配置字体:" + processEngineConfiguration.getActivityFontName());
    }
}
